// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'

Vue.config.productionTip = false

window.player = document.getElementById('audio') // 创建audio播放器

/*
window.audioctx = new AudioContext() // 创建audio上下文

window.analyser = window.audioctx.createAnalyser() // 创建分析器
window.analyser.maxDecibels = 0
window.analyser.minDecibels = -70
window.audioSrc = window.audioctx.createMediaElementSource(window.player) // 创建音源

window.audioSrc.connect(window.analyser) // 音源连接分析器
window.analyser.connect(window.audioctx.destination) // 分析器连接扬声器
*/

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store: store,
  template: '<App/>',
  components: { App }
})
